]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
recorder: don't bother selecting for enter/leave/motion events
authorRay Strode <rstrode@redhat.com>
Mon, 11 Mar 2013 15:37:01 +0000 (11:37 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 11 Mar 2013 16:35:38 +0000 (12:35 -0400)
Mutter already handles that for us.

https://bugzilla.gnome.org/show_bug.cgi?id=695324

src/shell-recorder.c

index 0f6a6fbb57dede0a4e5e1b10c5d6743ca0e62c7b..f2bd6863981036fa5999257e126b0e2685298a36 100644 (file)
@@ -764,14 +764,6 @@ recorder_get_initial_cursor_position (ShellRecorder *recorder)
 
   XUngrabServer(xdisplay);
   XFlush(xdisplay);
-
-  /* While we are at it, add mouse events to the event mask; they will
-   * be there for the stage windows that Clutter creates by default, but
-   * maybe this stage was created differently. Since we've already
-   * retrieved the event mask, it's almost free.
-   */
-  XSelectInput(xdisplay, xwindow,
-               xwa.your_event_mask | EnterWindowMask | LeaveWindowMask | PointerMotionMask);
 }
 
 /* When the cursor is not over the stage's input area, we query for the